<template>
  <div class="dashboard">
    <el-row :gutter="20">
      <el-col :span="6">
        <el-card>
          <template #header>用例总数</template>
          <h2>{{ stats.totalCases }}</h2>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
          <template #header>执行中</template>
          <h2>{{ stats.runningCases }}</h2>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
          <template #header>今日通过率</template>
          <h2>{{ stats.passRate }}%</h2>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card>
          <template #header>设备使用率</template>
          <h2>{{ stats.deviceUsage }}%</h2>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script setup lang="ts">
import { reactive } from 'vue'

const stats = reactive({
  totalCases: 128,
  runningCases: 12,
  passRate: 95.5,
  deviceUsage: 78.3
})
</script> 